<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Blogger_Vertify extends Controller_DefaultTemplate{

public function action_id($id)
{
	$blog = ORM::factory('blog')
		->where('id', '=', $id)
		->and_where('user_id', '=', Auth::instance()->get_user()->id)
		->find();
	if ($blog->loaded())
	{
		echo 'load';
	}
	else
	{
		echo 'unload';
	}
	return;
}

/**
* Initialize properties before running the controller methods (actions),
* so they are available to our action.
*/
public function before()
{
	// Run anything that need to run before this.
	parent::before();

	if (!Auth::instance()->logged_in())
	{
		$this->request->redirect('/user/login');
	}

	$this->template->content = View::factory('blogger/vertify');
}

}




